/**loading*/
.loading{
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
}
.loading.pageLoading{
    display: block;
}
.loading .ant-spin-dot {
    position: absolute;
    /* display: inline-block; */
    font-size: 30px;
    width: 30px;
    height: 30px;
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
}
.loading .ant-spin-dot-spin{
    transform: rotate(45deg);
    animation: antRotate 1.2s infinite linear;
}
.loading .ant-spin-dot i {
    position: absolute;
    display: block;
    width: 12px;
    height: 12px;
    background-color: #1890ff;
    border-radius: 100%;
    -webkit-transform: scale(.75);
    transform: scale(.75);
    -webkit-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
    opacity: .3;
    -webkit-animation: antSpinMove 1s linear infinite alternate;
    animation: antSpinMove 1s linear infinite alternate;
}
.loading .ant-spin-dot-item:first-child {
    left: 0;
    top: 0;
}
.loading .ant-spin-dot-item:nth-child(2) {
    right: 0;
    top: 0;
    animation-delay: 0.4s;
}
.loading .ant-spin-dot-item:nth-child(3) {
    right: 0;
    bottom: 0;
    animation-delay: 0.8s;
}
.loading .ant-spin-dot-item:nth-child(4) {
    left: 0;
    bottom: 0;
    animation-delay: 1.2s;
}
.ant-spin-text{
    position: absolute;
    top: 50%;
    padding-top: 30px;
    color: #1890ff;
    font-size: 14px;    
    font-weight: bold;
    width: 160px;
    left: 50%;
    margin-left: -80px;
    text-align: center;
}
.ant-spin-text span{
    display: inline-block;
    margin: 3px;
}
@keyframes antSpinMove {
    to {
        opacity: 1;
    }
}
@keyframes antRotate {
    to {
        transform: rotate(405deg);
    }
}
/**loading end*/

/* message*/
.ant-message{
    display:none;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: rgba(0, 0, 0, 0.85);
    font-size: 14px;
    font-variant: tabular-nums;
    line-height: 1.5715;
    list-style: none;
    font-feature-settings: 'tnum', "tnum";
    position: fixed;
    top: 8px;
    left: 0;
    z-index: 1010;
    width: 100%;
    pointer-events: none;
}
.ant-message-notice{
    padding: 8px;
    text-align: center;
}
.ant-message-notice-content{
    display: inline-block;
    padding: 10px 16px;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
    pointer-events: all;
}
.anticon {
    display: inline-block;
    color: inherit;
    font-style: normal;
    line-height: 0;
    text-align: center;
    text-transform: none;
    vertical-align: -0.125em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.ant-message-warning .anticon {
    color: #faad14;
}
.ant-message .anticon{
    position: relative;
    top: 1px;
    margin-right: 8px;
    font-size: 16px;
}
.anticon svg {
    display: inline-block;
}
/* message end*/
/* 同步tag*/
#conMenu{
    display: none;
    position: absolute;
    z-index: 10;
    background: #0E93FB;
    color: #fff;
    list-style: none;
    margin: 0;
    padding: 0;
}
#conMenu li{
    padding: 2px 6px;
    border: 0;
    display: flex;
    align-items: center;
}
#conMenu input{
    margin:3px;
    cursor: pointer;
}
/* 同步tag */
/**tip*/
.ant-tooltip{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: #000000d9;
    font-size: 14px;
    font-variant: tabular-nums;
    line-height: 1.5715;
    list-style: none;
    font-feature-settings: "tnum";
    position: absolute;
    z-index: 1070;
    display: block;
    width: 100px;
    max-width: 250px;
    visibility: visible;
    display: none;
}
.ant-tooltip .ant-tooltip-content .ant-tooltip-arrow{
    position: absolute;
    display: block;
    width: 13.07106781px;
    height: 13.07106781px;
    overflow: hidden;
    background: 0 0;
    pointer-events: none;
    top: 50%;
    transform: translateY(-50%);
    right: -5.07106781px;
}
.ant-tooltip .ant-tooltip-content .ant-tooltip-arrow .ant-tooltip-arrow-content{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: 5px;
    height: 5px;
    margin: auto;
    margin-left: 12px;
    background-color: #000000bf;
    content: "";
    pointer-events: auto;
    box-shadow: 3px -3px 7px #00000012;
    transform: translate(-6.53553391px) rotate(45deg);
}
.ant-tooltip .ant-tooltip-content .ant-tooltip-inner{
    min-width: 30px;
    min-height: 32px;
    padding: 6px 8px;
    color: #fff;
    text-align: left;
    text-decoration: none;
    word-wrap: break-word;
    background-color: #000000bf;
    border-radius: 2px;
    box-shadow: 0 3px 6px -4px #0000001f, 0 6px 16px #00000014, 0 9px 28px 8px #0000000d;
    font-size: 12px;
}
/*颜色弹出框 start*/
.jGraduate_tab_lingrad,
.jGraduate_tab_radgrad{
    display:none !important;
}
/*颜色弹出框 end*/
/* 弹出框 start*/
.ant-modal-mask {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    display: none;
}
.ant-modal-wrap {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: auto;
    outline: 0;
    -webkit-overflow-scrolling: touch;
    pointer-events: none;
    z-index: 99999;
    display: none;
}
.ant-modal-wrap .ant-modal {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: rgba(0, 0, 0, 0.85);
    font-size: 14px;
    font-variant: tabular-nums;
    line-height: 1.5715;
    list-style: none;
    font-feature-settings: 'tnum', "tnum";
    pointer-events: none;
    position: relative;
    top: 100px;
    width: auto;
    max-width: calc(100vw - 32px);
    margin: 0 auto;
}
.ant-modal-wrap .ant-modal .ant-modal-content {
    position: relative;
    background-color: #fff;
    background-clip: padding-box;
    border: 0;
    border-radius: 2px;
    box-shadow: 0 3px 6px -4px rgb(0 0 0 / 12%), 0 6px 16px 0 rgb(0 0 0 / 8%), 0 9px 28px 8px rgb(0 0 0 / 5%);
    pointer-events: auto;
}
.ant-modal-wrap .ant-modal .ant-modal-close{
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    padding: 0;
    color: rgba(0, 0, 0, 0.45);
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    background: transparent;
    border: 0;
    outline: 0;
    cursor: pointer;
    transition: color 0.3s;
    box-shadow: none;
}
.ant-modal-wrap .ant-modal  .ant-modal-content .ant-modal-close .ant-modal-close-x {
    display: block;
    width: 56px;
    height: 56px;
    font-size: 16px;
    font-style: normal;
    line-height: 56px;
    text-align: center;
    text-transform: none;
    text-rendering: auto;
}
.ant-modal-wrap .ant-modal .anticon.ant-modal-close-icon {
    background: #fff;
}
.ant-modal-wrap .ant-modal .ant-modal-content .ant-modal-close .ant-modal-close-x .anticon {
    display: inline-block;
    color: inherit;
    font-style: normal;
    line-height: 0;
    text-align: center;
    text-transform: none;
    vertical-align: -0.125em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.ant-modal-wrap .ant-modal .ant-modal-content .ant-modal-close .ant-modal-close-x .anticon svg {
    display: inline-block;
}
.ant-modal-wrap .ant-modal .ant-modal-header {
    padding: 16px 24px;
    color: rgba(0, 0, 0, 0.85);
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 2px 2px 0 0;
}
.ant-modal-wrap .ant-modal .ant-modal-header .ant-modal-title{
    margin: 0;
    color: rgba(0,0,0,.85);
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
    word-wrap: break-word;
}
.ant-modal-wrap .ant-modal .ant-modal-body {
    padding: 24px;
    font-size: 14px;
    line-height: 1.5715;
    word-wrap: break-word;
    height: auto;
}
.ant-modal-wrap .ant-modal .ant-modal-footer {
    padding: 10px 16px;
    text-align: right;
    background: transparent;
    border-top: 1px solid #f0f0f0;
    border-radius: 0 0 2px 2px;
}
.ant-modal-wrap .ant-modal .ant-modal-footer .ant-btn {
    line-height: 1.5715;
    position: relative;
    display: inline-block;
    font-weight: 400;
    white-space: nowrap;
    text-align: center;
    background-image: none;
    box-shadow: 0 2px 0 rgb(0 0 0 / 2%);
    cursor: pointer;
    transition: all .3s cubic-bezier(.645,.045,.355,1);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation;
    height: 32px;
    padding: 4px 15px;
    font-size: 14px;
    border-radius: 2px;
    color: rgba(0,0,0,.85);
    background: #fff;
    border: 1px solid #d9d9d9;
    outline: none;
}
.ant-modal-wrap .ant-modal .ant-modal-footer .ant-btn-primary {
    color: #fff;
    background: #1890ff;
    border-color: #1890ff;
    text-shadow: 0 -1px 0 rgb(0 0 0 / 12%);
    box-shadow: 0 2px 0 rgb(0 0 0 / 5%);
}
/* 弹出框 end*/

#menu_bar{
    z-index: 5;
    background: #373847;
    box-shadow: 0 2px 4px rgba(0,0,0,.5);
    padding: 0 20px;
    display: flex;
    align-items: center;
}
#menu_bar *{
    color: hsla(0,0%,100%,.7);
}
#menu_bar .menu .menu_title{
    padding: 1rem .8rem;
}
#menu_bar.active .menu.open .menu_title{
    background: transparent;
}
#menu_bar .menu .menu_title:hover{
    background: transparent;
}
#menu_bar #template_name{
    flex: 1 1;
    text-align: center;
}
#menu_bar a{
    text-decoration: none;
}
#menu_bar a img, #menu_bar a svg{
    margin-right: .25rem;
}
div#workarea{
    left:10vw;
    right: 175px;
    top:3rem;
    bottom: 2.5rem;
}
div#workarea *{
    box-sizing: border-box;
}
#tools_left{
    position: relative;
    width: 10vw;
    height: calc(100vh - 5.5rem);
    top: 0;
    padding: 1rem;
    overflow: auto;
    /* box-shadow: 0 2px 4px 0 rgba(0,0,0,.5); */
    background-color: #282935;
    box-sizing: border-box;
}
#tools_left .layout.horizontal>svg{
    width: 100%;
    height: auto;
    margin: 0 0 16px;
    border: 2px solid transparent;
}
#tools_left .layout.vertical{
    max-width: 80px;
    margin-left: calc((100% - 80px)/2);
}

#tools_left .layout.vertical>svg{
    max-width: 80px;
    height: auto;
    margin-bottom:16px;
    display: block;
    border: 2px solid transparent;
}
#tools_left .layout>svg{
    cursor: pointer;
}
#tools_left .layout>svg.active,
#tools_left .layout>svg:hover{
    border-color: #2895ff;
}
#tools_left h3{
    font-weight: 500;
    display: inline-block;
    width: 100%;
    height: 15px;
    color: hsla(0,0%,100%,.3);
}
#tools_left select option{
    color: #000;
    background: transparent;
}
#tools_left .reference_line{
    width: 100%;
    color: hsla(0,0%,100%,.3);
    margin: 0 0 1rem;
}
#tools_left .reference_line>span{
    display: block;
    margin-bottom: 1rem;
    align-items: center;
}
#tools_left .reference_line h5{
    margin-top: 0px;
}
#tools_left .reference_line .label{
    width: 40px;
    display: inline-block;
    margin-bottom: 5px;
}
#tools_left .reference_line .number{
    display: inline-block;
}
#tools_left .reference_line select{
    height: 22px;
    line-height: 22px;
    margin: 0;
    background: transparent;
    box-sizing: border-box;
    border: 1px solid #6c6c6c;
    border-radius: 4px;
    color: hsla(0,0%,100%,.3);
    cursor: pointer;
}
#tools_left .reference_line .x.number::after,
#tools_left .reference_line .y.number::after{
    content:'(≤100)';
    display: inline-block;
    margin-left: 5px;
    line-height: 22px;
    font-size: 12px;
    position: absolute;
}
#tools_left .reference_line input[type="text"].custom{
    width: 65px;
    height: 22px;
    line-height: 22px;
    padding: 0 0 0 8px;
    background: transparent;
    color: #fff;
    border-right: 0;
    box-sizing: border-box;
    border: 1px solid #6c6c6c;
    border-radius: 4px;
    display: none;
}
#tools_left .reference_line .button{
    display: inline-block;
    padding: 5px 10px;
    background: #2895ff;
    cursor: pointer;
    color: #fff;
    border-radius: 2px;
    margin: 0;
}
#tools_left .tool_button svg,
#tools_left .tool_button_current svg,
#tools_left .tool_button img,
#tools_left .tool_button_current img{
    width: 1.6rem;
    height: 1.6rem;
    margin-bottom: .2rem;
}
#tools_left .loaded h5{
    font-size: .5rem;
    max-width: 55px;
    line-height: 1rem;
    display: block;
    text-align: center;
    font-weight: 500;
    margin: 0;
}

#tools_left .tool_button.loaded,
#tools_left .tool_button_current {
    border: 0;
    background: #ccc;
    width: calc((10vw - 2.5rem - 5px)/2);
    height: calc((10vw - 2.5rem - 5px)/2);
    float: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: hsla(0,0%,100%,.4);
}
#tools_left .loaded:nth-of-type(2n){
    margin-right: .5rem;
    margin-bottom: .5rem;
}
#tools_left .tool_button:after, #tools_left .tool_button_current:after{
    display: none;
}
#tools_left #tool_select,
#tools_left #tool_fhpath,
/* #tools_left #tools_shapelib_show, */
#tools_left #tool_line,
#tools_left #tool_eyedropper,
#tools_left #tool_ellipse,
#tools_left #tool_path,
#tools_left #tool_zoom{
    display: none;
}
#cornerRadiusLabel{
    display: none !important;
}
.flyout_arrow_horiz{
    top: 45%;
}
#rulers{
    position: relative;
    flex: 1 1;
}
#rulers #ruler_corner,
#rulers #ruler_x,
#rulers #ruler_y{
    left:10vw;
    box-sizing:border-box;
}
#rulers #ruler_x{
    top:48px;
    left:calc(10vw + 15px);
}
#rulers #ruler_y{
    top: 48px;
}
#tools_bottom{
    left: 0;
    height: 2.5rem;
    background: #282935;
}
.draginput input{
    height: auto;
}
#position_opts>div.active{
    background: #2895ff;
}
#canvas_width,#canvas_height{
    pointer-events: none;
}
/** =======================================**/
foreignObject {
    border: 1px solid #0E93FB;
    box-sizing: border-box;
    cursor: move;
}
foreignObject[sync="true"]{
    border-color:#ffe58f;
}
#svg_editor foreignObject iframe{
    pointer-events: none;
}
svg[tag="material"],
svg[tag="qrcode"],
svg[tag="barcode"],
svg[tag="live"]
{
    pointer-events: none;
}
#svgcontent image{
    /* border: 1px solid #2895ff;  */
}
#tool_stroke,
#tool_switch{display: none;}

#color_tools,
#background_tools{width: 100%;height: 70px;margin: 0;}
#color_tools #tool_fill,
#background_tools #background_fill{
    width: 60px;
    height: 40px;
    margin: 23px 5px 5px 5px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
#color_tools #tool_fill .color_block,
#background_tools #background_fill .color_block{
    width: 60px;
    height: 40px;
    border:0;
    position: absolute;
}
#background_tools #background_fill .color_block #background_bg{
    position: absolute;
    top: 1px;
    left: 1px;
    bottom: 1px;
    right: 1px;
    background: #fff url() top left repeat;
}
#tools_top{
    top: 48px;
    padding: 0 7px;
    width: 175px;
    height: calc(100vh - 5.5rem);
    overflow: auto;
    background: #282935;
    z-index: 2;
    box-sizing: border-box;
}
#tools_top.multies::before{
    content: '多选不可操作';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    color:#ffe58f;
    background: rgba(0,0,0,.5);
    z-index: 9;
}
.draginput{
    margin: 0 calc((100% - 140px)/4) .5rem calc((100% - 140px)/4);
}
#position_opts{
    display: flex;
    flex-wrap: wrap;
}
#position_opts .draginput_cell{
    margin: 0 calc((100% - 138px)/6) calc((100% - 138px)/6) calc((100% - 138px)/6);
}
#tools_top h4{
    padding: 10px 0;
}
#tools_top .loading{
    color: #ffe58f;
    font-size: 2em;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
foreignObject textarea{
    backface-visibility: hidden;
    border: 0;
    position: relative;
    width: 100%;
    height: 100%;
    resize:none;
    overflow: hidden;
}
foreignObject[tag="weather"] iframe{
    background: transparent;
}
foreignObject[tag="time"] .time{
    display: flex;
    width: 100%;
    height:100%;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: absolute;
}
textarea:focus{outline:none;}
#textarea{
    position: absolute;
    left: -9999px;
}
#textarea_preview_font {
    font-size: 20px;
    color: #fff;
    height: 70px;
    line-height: 75px;
    padding: 0 10px;
    white-space: nowrap;
    overflow: hidden;
    border-right: solid #2f2f2c 2px;
    position: relative;
}
#tool_textarea_font_family{
    width: calc(140px + (100% - 140px)/2);
    height: 108px;
}
#tool_textarea_font_family select {
    width: 100%;
    height: 70px;
    cursor: pointer;
}
#tool_textarea_font_family .caret {
    right: 15px;
}
#tool_textarea_bold, 
#tool_textarea_italic,
#tool_textarea_underline {
    font: bold 20px/35px serif;
    text-align: center;
    flex: 1;
    position: relative;
    padding: 0 0 0 0;
    color: #ccc;
    background: transparent;
    border: none;
    width: 35px;
    height: 35px;
    border: solid #2f2f2c 4px;
}
#tool_textarea_bold:hover, 
#tool_textarea_italic:hover,
#tool_textarea_underline:hover{
    color: #fff;
}
#tool_textarea_bold.active, 
#tool_textarea_italic.active,
#tool_textarea_underline.active {
    color: #50A0FF;
}
#tool_textarea_italic {
    font-weight: bold;
    font-style: italic;
}
#tool_textarea_underline::after{
    content: '_';
    position: absolute;
    width: 14px;
    height: 2px;
    bottom: 0;
    left: 50%;
    margin-left: -7px;
    background: #ccc;
    margin-bottom: 8px;
}
#tool_textarea_underline:hover::after{
    background: #fff;
}

#tool_textarea_underline.active::after{
    background: #50A0FF;
}

#workarea #canvas_background{
    stroke: rgb(14, 147, 251);
}
#rulers{
    font-size: 12px;
}
#rulers .ruler{
    pointer-events: auto;
}
#rulers .indicator {
    position: absolute;
    overflow: initial;
    pointer-events: none;
}
#rulers .indicator .value {
    color: #2895ff;
    background-color: #262732;
    position: absolute;
}
#rulers .h-container, #rulers .v-container {
    position: absolute;
    overflow: initial;
}

#rulers .h-container .lines, #rulers .v-container .lines {
    pointer-events: none;
}
#rulers .h-container:hover .lines, #rulers .v-container:hover .lines {
pointer-events: auto;
}
#rulers .v-container {
    width: 17px;
    height: calc(100% - 16px);
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    
}
#rulers .v-container .indicator {
    width: 100vw;
    border-bottom: 1px solid rgb(14, 147, 251);
}
#rulers .v-container .indicator .value {
    margin-left: 2px;
    margin-top: -5px;
    transform-origin: 0px 0px;
    transform: rotate(-90deg);
}
#rulers .h-container {
    width: calc(100% - 16px);
    height: 17px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
#rulers .h-container span{
    line-height: 1;
}
#rulers .h-container .indicator {
    top: 0px;
    height: 100vw;
    border-left: 1px solid rgb(14, 147, 251);
}
#rulers .h-container .indicator .value {
    margin-left: 2px;
    margin-top: 4px;
}
#rulers .line{
    position: absolute;
}
#rulers .h-container .line {
    height: 100vh;
    top: 0px;
    padding-left: 5px;
    cursor: ew-resize;
    border-left: 1px solid rgb(14, 147, 251);
}
#rulers .v-container .line {
    width: 100vw;
    left: 0px;
    padding-top: 5px;
    cursor: ns-resize;
    border-top: 1px solid rgb(14, 147, 251);
}
#rulers .line .action {
    position: absolute;
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    color: #fff;
}
#rulers .h-container .line .action {
    top: 16px;
    transform: translateX(-24px);
}
#rulers .v-container .line .action {
    left: 16px;
    transform: translateY(-24px);
    flex-direction: column;
}
#rulers .line .value {
    pointer-events: none;
    transform: scale(0.83);
}
#rulers .h-container .line .action .value {
    margin-left: 4px;
}
#rulers .line .del {
    cursor: pointer;
    visibility: hidden;
    padding: 3px 5px;
}
#rulers .line:hover .del {
    visibility: visible;
}
/**===========素材选择区域===============**/
.material_panel *{
    box-sizing: border-box;
}
.material_panel{
    /* height: calc(100vh - 48px); */
}
.material_panel .tab{
    overflow: hidden;
    margin-bottom: 1rem;
    display: flex;
}
.material_panel .tab label{
    color: #c3c3c8;
    text-align: center;
    box-shadow: none!important;
    float: left;
    line-height: 32px;
    cursor: pointer;
    border: 1px solid #2895ff;
    flex: 1;
}
.material_panel .tab label.active{
    background: #2895ff;
    color: #fff;
}
.material_panel .content .search-filed{
    position: relative;
}
.material_panel .content .search-filed .search{
    width: 100%;
    border: 1px solid #2895ff;
    padding: 7px 24px 7px 5px;
    margin-bottom: 1rem;
    /* border-radius: 3px; */
    background: transparent;
    color: #fff;
    display: none;
}
.material_panel .content .search-filed .search-btn{
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 8px;
    color: #fff;
}
.material_panel .content .list_content{ 
    width: 100%;
    height: calc(100vh - 18rem);
    overflow: auto;
}
.material_panel .content .list_content.img,
.material_panel .content .list_content.video{
    display: none;
}
.material_panel .content .list_content ul{
    padding: 0;
    margin: 0;
    list-style: none;
}
.material_panel .content .list_content ul li{
    margin-bottom: 1rem;
    position: relative;
    cursor: pointer;
}
.material_panel .content .list_content ul li img{
    width: 100%;
    height: calc((10vw - 2rem)/2);
    object-fit: contain;
    background: rgba(30,33,44,.8);
    border: 1px solid #000;
}
.material_panel .content .list_content ul li img.active{
    border: 2px solid #2895ff;
}
.material_panel .content .list_content ul li .mask{
    position: absolute;
    left: 0;
    width: 100%;
    bottom: 0;
    color: #fff;
    background: rgba(0,0,0,.5);
    font-size: .5rem;
}
.material_panel .content .list_content ul li .mask span{
    /* overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; */
    transform-origin: left;
    word-break: break-all;
    width: 50%;
    float: left;
    display: block;
    margin-top: 5px;
    transform: scale(0.8);
    transform-origin: left;
}
.material_panel .content .list_content ul li .mask span.name{
    width: 125%;
}
.material_panel .content .list_content.video ul li::before{
    content: url('');
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
}
.material_panel .content .list_content.video ul li .mask span:last-child{
    text-align: right;
}
/**===========素材轮播区域===============**/
#material_field{
    height: 11rem;
    position: absolute;
    right: 175px;
    bottom: 0;
    padding: 0 1rem;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-transition: -webkit-transform .2s;
    transition: -webkit-transform .2s;
    transition: transform .2s;
    transition: transform .2s,-webkit-transform .2s;
    z-index: 4;
    box-shadow: 0 2px 6px 0 #000;
    background: #262732;
}
#material_field.hide{
    webkit-transform: translateY(calc(100% - 1.5rem));
    transform: translateY(calc(100% - 1.5rem));
}
#material_field *{
    box-sizing: border-box;
}
#material_field .title{
    line-height: 1.5rem;
    color: #c3c3c8;
}
#material_field .title span{
    font-size: 12px;
    padding: 0 .5rem;
    line-height: 1.25rem;
    position: relative;
    cursor: pointer;
}
#material_field .title span.cart-down::after{
    position: absolute;
    right: -8px;
    top: 3px;
    content: "";
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid #6c6c6c;
}
#material_field .title span.cart-up::after{
    position: absolute;
    right: -8px;
    top: 3px;
    content: "";
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 6px solid #6c6c6c;
}
#material_field #zoom_panel{
    float: right;
    right: 0;
    top: 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.5rem;
}
#material_field #zoom_panel #zoom{
    text-align: right;
    width: 15px;
}
#material_field .content{
    overflow: hidden;
}
#material_field .content ul{
    display: flex;
    float: left;
    overflow: auto;
    max-width: calc(90vw - 160px - 3rem - 112px);
    margin: 0;
    padding: 1rem 0 1rem 0.5rem;
    list-style: none;
}
#material_field .content ul li{
    /* min-width: 7.5rem; */
    min-width:120px;
    position: relative;
    display: flex;
    margin-right: 1.25rem;
    flex-direction: column;
    align-items: center;

}
#material_field .content ul li .preview{
    max-height: 3.5rem;
    max-width: 7rem;
    width: 100%;
    height: 3.5rem;
    border: 1px solid #6c6c6c;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: move;
}
#material_field .content ul li .preview img,
#material_field .content ul li .preview video,
#preview_container foreignObject img,
#preview_container foreignObject video{
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;  
}
#material_field .content ul li .preview img[preserveAspectRatio="none"],
#material_field .content ul li .preview video[preserveAspectRatio="none"],
#preview_container foreignObject img[preserveAspectRatio="none"],
#preview_container foreignObject video[preserveAspectRatio="none"]{
    object-fit: fill;
}
#material_field .content ul li .mask{
    position: absolute;
    width: 100%;
    color: #fff;
    background: rgba(0,0,0,.5);
    font-size: .5rem;
    bottom: calc(22px + 0.5rem);
    max-width: 7rem;
    padding: 0 2px;
    pointer-events: none;
}
#material_field .content ul li .mask .name{
    word-break: break-all;
    width: 125%;
    display: block;
    transform: scale(0.8);
    transform-origin: left;
    line-height: 1.5;
}
img[src=""] {visibility:hidden}
#preview_container foreignObject img{
    position: absolute;
    backface-visibility: hidden;
}
#material_field .content ul li>.del{
    content: '×';
    position: absolute;
    top: -7px;
    right: 0px;
    background: #fff;
    width: 14px;
    height: 14px;
    text-align: center;
    line-height: 14px;
    border-radius: 14px;
    cursor: pointer;
    z-index: 1;
}
#material_field .content ul li .preview::before{
    position: absolute;
    left: 0;
    top: 0px;
    background: #6c6c6c;
    font-size: 12px;
    color: #fff;
    height: 16px;
    line-height: 16px;
    padding: 2px;
    z-index: 9;
}
#material_field .content ul li .preview::after{
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%,-100%);
    transform-origin: 100% 0%;
    content: attr(data-index);
    width: 20px;
    height: 15px;
    color: #fff;
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
    white-space: nowrap;
    text-align: center;
    background: #ff4d4f;
    border-radius: 10px;
    box-shadow: 0 0 0 1px #fff;
    z-index: 9;
}
/* #material_field .content ul li .preview.active::after{
    font-size: 16px;
    width: 25px;
    height: 17px;
    line-height: 17px;
} */
#material_field .content ul li .preview.active::before{
    background: #2895ff;
}
#material_field .content ul li .preview[tag="textarea"]::before{
    content: url(''); 
    top:auto;
    bottom: 0;
    left: auto;
    right: 0;
}
#material_field .content ul li .preview[tag="img"]::before{
    content: url(''); 
}
#material_field .content ul li .preview[tag="video"]::before{
    content: url('');
}
#material_field .content ul li .preview[tag="qrcode"]::before{
    content: url('');
}
#material_field .content ul li .preview[tag="barcode"]::before{
    content: url('');
}
#material_field .content ul li .preview[tag="webpage"]::before{
    content: url('');
}
#material_field .content ul li .preview[tag="live"]::before{
    content: url('');
}
#material_field .content ul li .preview.active{
    border: 2px solid #2895ff;
}
#material_field .content ul li .preview>svg{
    pointer-events: none;
    height: 100%;
    object-fit: contain;
    /* transform: scale(.6); */
}
#material_field .content ul li .preview>svg foreignObject{
    cursor: move;
    x: 0;
    y: 0;
    /* width: 100%; */
    /* height: 100%; */
    transform: none;
}
#material_field .content ul li .preview>svg foreignObject textarea{
    border:0;
    transform-origin: 0px 0px;
}
#material_field .content ul li .duration{
    color: hsla(0,0%,100%,.3);
    font-size: .625rem;
    margin-top: .5rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
}
#material_field .content ul li .duration>span{
    line-height: 22px;
}
.number .num-input-wrap{
    position: relative;
    display: inline-block;
    vertical-align: top;
    height: 22px;
    width: 65px;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid #6c6c6c;
    border-radius: 4px;
}
.number .num-input-wrap .add,
.number .num-input-wrap .subtract{
    position: absolute;
    right: 0px;
    width: 25px;
    height: 11px;
    border-left: 1px solid rgb(108, 108, 108);
    box-sizing: border-box;
    cursor: pointer;
    background: transparent;
}
.number .num-input-wrap .add{
    top: 0px;
}
.number .num-input-wrap .subtract{
    bottom: 0px;
}
.add:hover,.subtract:hover{background: #d8d8d8;}
.add.deep,.subtract.deep{background: #b3b3b3;}
.add::after{
    position: absolute;
    left: 8px;
    top: 3px;
    content: "";
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 6px solid #6c6c6c;
}
.subtract::after{
    position: absolute;
    left: 8px;
    bottom: 3px;
    content: "";
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid #6c6c6c;
}
.number .num-input-wrap .add:hover::after{
    border-bottom:6px solid #fff;
}
.number .num-input-wrap .subtract:hover::after{
    border-top:6px solid #fff;
}
.number .num-input-wrap input[type="text"]{
    height: 22px;
    line-height: 22px;
    width: 40px;
    padding: 0 0 0 8px;
    background: transparent;
    border: 0;
    color: #fff;
    border-right: 0;
    box-sizing: border-box;
}
.number .num-input-wrap input[type="text"]:focus{
    border: 0;
}
#material_field .content>img{
    margin-top: 1rem;
    width: 112px;
    height: 56px;
    cursor: pointer;
}
#code_panel *,
#webpage_panel *,
#live_panel *
{
    box-sizing: border-box;
}
#code_panel,
#webpage_panel,
#live_panel{
    padding: 0 10px 10px;
}
#code_panel input[type='text'],
#webpage_panel input[type='text'],
#live_panel input[type='text']{
    width: 100%;
    border: 1px solid #2895ff;
    padding: 3px;
    border-radius: 5px;
    background: transparent;
    color: #fff;
}
#code_panel .content,
#webpage_panel .content,
#live_panel .content{
    margin-bottom: .5rem;
    display: block;
    position: relative;
}
#code_panel .content::after,
#webpage_panel .content::after,
#live_panel .content::after{
    position: absolute;
    top: 0;
    left: -12px;
    color: #f5222d;
    font-size: 14px;
    font-family: SimSun,sans-serif;
    line-height: 1;
    content: "*";
}
#code_panel .error,
#webpage_panel .error,
#live_panel .error{
    display: none;
    color: #f5222d;
    margin-bottom: .5rem;
}
#code_panel .button,
#webpage_panel .button,
#live_panel .button{
    background: #2895ff;
    color: #fff;
    display: inline-block;
    border-radius: 3px;
    padding: 7px 13px;
    border: none;
    line-height: 140%;
    font-size: 14px;
    font-weight: bold;
    font-family: sans-serif;
    margin: 0;
    cursor: pointer;
}
#preview_container{
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    overflow: auto;
    outline: 0;
    background-color: rgba(18,18,18,.7);
    -webkit-overflow-scrolling: touch;
}
#preview_container .content{
    webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: rgba(0,0,0,.65);
    font-size: 14px;
    font-variant: tabular-nums;
    line-height: 1.5;
    list-style: none;
    -webkit-font-feature-settings: "tnum","tnum";
    font-feature-settings: "tnum","tnum";
    position: relative;
    top: 100px;
    width: auto;
    margin: 0 auto;
    padding: 0;
    pointer-events: auto;
    top: 50%;
    transform: translateY(-50%);
}
#preview_container .content button{
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    padding: 0;
    color: rgba(0,0,0,.45);
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    background: transparent;
    border: 0;
    outline: 0;
    cursor: pointer;
    -webkit-transition: color .3s;
    transition: color .3s;
}
/* #preview_container .content video{
    border-bottom: 1px solid transparent;
} */
#preview_container .content video#bgImage{position:absolute;top:0;left:0;z-index: -9999;}
#preview_container .content button:hover{
    box-shadow:none;
}
#preview_container .content button span{
    display: block;
    font-size: 16px;
    font-style: normal;
    text-align: center;
    text-transform: none;
    text-rendering: auto;
    width: 3rem;
    height: 3rem;
    line-height: 3rem;
    color: #373847;
}
/* #preview_container .content foreignObject:not([tag="webpage"]) */
/* #preview_container .content foreignObject textarea */
#preview_container .content foreignObject
{
    border: none;
    pointer-events: none !important;
    overflow: visible;
}
/* #preview_container .content #svgcontent>g:first-child foreignObject{
    text-align: center;
} */
.page{
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    height: 50px;
}
.page a{
    width: 22px;
    height: 22px;
    line-height: 22px;
    margin: 0 3px;
    border: 0;
    color: #2895ff;
    display: none;
    text-decoration: none;
}
.page a.disabled{
    opacity: 1;
}
.page .next, .page .prev,.page .jump-btn{
    font-size: 12px;
    display: block;
    cursor: pointer;
    text-align: center;
}
.page .next, .page .prev,.page .jump-btn:hover{
    background: #2895ff;
    color: #fff;
}
.page .active,.page .total, .page input.jump-ipt,.page a{
    width: 22px;
    height: 22px;
    line-height: 22px;
    margin: 0 3px;
    font-size: 12px;
    border-radius: 2px;
}
.page .active, .page .total{
    background: transparent;
    border: 0;
    width: auto;
    color: #bdbdbd;
}
.page .active{
    margin-right: 0;
}
.page .total{
    margin-left: 0;
}
